package com.ithuangyl.common.web.callback;

import android.net.Uri;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;

import com.ithuangyl.common.web.base.BaseWebView;

/**
 * author : theWind
 * e-mail : ithuangyl@163.com
 * date   : 2020/7/7 10:57
 */
public interface IFileChooserInterface {

    /**
     * Android 3.0-:openFileChooser(ValueCallback<Uri> uploadMsg)
     * Android 3.0+:openFileChooser(ValueCallback uploadMsg, String acceptType)
     * Android 4.1.1+:openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture)
     * Android 5.0+:onShowFileChooser(BaseWebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams)
     *
     * @param uploadMsg
     * @param acceptType
     * @param capture
     * @param webView
     * @param filePathCallback
     * @param fileChooserParams
     */
    void onShowFileChooser(ValueCallback uploadMsg, String acceptType, String capture, BaseWebView webView, ValueCallback<Uri[]> filePathCallback, WebChromeClient.FileChooserParams fileChooserParams);
}
